package com.tianhui.consignortwofei.mvp.ui.activity.deliverGoods.edit;

import android.text.TextUtils;

import com.tianhui.consignortwofei.mvp.ui.activity.deliverGoods.normal.DeliverGoodsStepThreeActivity;

/**
 * @author fgs
 * @date 2021/3/9
 * @description
 **/
public class EditDeliverGoodsStepThreeActivity extends DeliverGoodsStepThreeActivity {

    @Override
    public void initData() {
        //不能调用super
    }

    @Override
    public void initView() {
        super.initView();
//        mActiveTimeClickItemView.setContent(mGoodsInfo.ordertruetime);
        mDeadlineTimeClickItemView.setContent(mGoodsInfo.lendtime);
        mEarliestTimeClickItemView.setContent(mGoodsInfo.unloadearltime);
        mDeliverTimeInputItemView.setContent(mGoodsInfo.unloadearlhours);

        mDistanceInputItemView.setContent(mGoodsInfo.senddistance);
        mVehicleLimitClickItemView.setContent(mGoodsInfo.vehiclelengthtype);
        //是否允许报价
        if (!TextUtils.isEmpty(mGoodsInfo.quotation) && mGoodsInfo.quotation.equals("1")) {
            mQuoteTabSwitchView.setDefaultSelection(1);
        } else {
            mQuoteTabSwitchView.setDefaultSelection(0);
        }

    }

    @Override
    protected void openNextActivity() {
        openNextStepActivity(EditDeliverGoodsStepFourActivity.class);
    }
}
